package com;

public class Bean2 {
    public void comp(Bean1 bean1)
    {
        System.out.println(bean1);
        bean1.setName("will");
    }

    public void  test(final int a){
        final int b=0;
        new Thread(){
            public void run(){
                System.out.println(a);
                System.out.println(b);
            }
        }.start();
    }
}
